package com.lc.service.impl;

import com.lc.bean.ShoppingOrder;
import com.lc.dao.ShoppingOrderMapper;
import com.lc.service.ShoppingOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ShoppingOrderServiceImpl implements ShoppingOrderService {
    @Autowired
    private ShoppingOrderMapper shoppingOrderMapper;
    @Override
    public List<ShoppingOrder> selectById(String id) {
        return shoppingOrderMapper.selectById(id);
    }

    @Override
    public boolean deleteBys(String id) {
        return shoppingOrderMapper.deleteBys(id);
    }

    @Override
    public boolean addSOD(ShoppingOrder shoppingOrder) {
        return shoppingOrderMapper.addSOD(shoppingOrder);
    }

    @Override
    public boolean updateSOD(ShoppingOrder shoppingOrder) {
        return shoppingOrderMapper.updateSOD(shoppingOrder);
    }
}
